<style type="text/css">
.weixin_pay_qrcode img{ width: 260px;height: 260px;padding: 5%;}
.weixin_pay_qrcode span{ background: #dcdcdc; color: #575757; padding: 5px 15px; height: 30px; line-height: 30px;margin: 0px 60px;display: block; border-radius: 30px; }
</style>
<div style="width: 300px;text-align: center;display: inline;">
	<div class="weixin_pay_qrcode">
		<img src="{:U('weixin_pay_qrcode', array('code' => $code))}" />
		<span>请使用微信扫描进行支付</span>
	</div>
</div>
<script type="text/javascript">
var weixin_status;
$(document).ready(function () {
	$('#winFrontContenter .winTitleBar a').click(function () {
		window.clearTimeout(weixin_status);
	});
	get_order_status(1);
});
function get_order_status (time) {
	$.ajax({
		type: "get",
		url: "{:U('get_order_is_pay', array('order_sn' => $order_sn, 'order_type' => $order_type))}",
		dataType:"json",
		success: function(data){
			if(data.status == 1){
				jumpurl("{:U('Order/pay_success_jump', array('order_sn' => $order_sn, 'order_type' => $order_type))}")
			}
		}
	});
	var time = time ? time : 3;
	weixin_status = setTimeout("get_order_status(" + time + ")", time * 1000);
}
</script>